package com.recruit.server.response.cart;

import com.recruit.server.common.BaseResponse;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class ListCartResponse extends BaseResponse {

    private double totalPrice;

    private List<CartItem> cartItems = new ArrayList<>();

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public List<CartItem> getCartItems() {
        return cartItems;
    }

    public void setCartItems(List<CartItem> cartItems) {
        this.cartItems = cartItems;
    }

    @Data
    public static class CartItem {

        private Integer cartId;

        private Integer userId;

        private BigDecimal price;

        private double cartPrice;

        private Integer productId;

        private Integer quantity;

        private String productName;

        private String productSubTitle;
    }
}
